package org.jeecg.modules.demo.basememberprojectserve.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.basememberprojectserve.entity.BaseMemberProjectServe;
import org.jeecg.modules.demo.basememberprojectserve.entity.ProjectServeInfo;
import org.jeecg.modules.demo.basememberprojectserve.mapper.BaseMemberProjectServeMapper;
import org.jeecg.modules.demo.basememberprojectserve.service.IBaseMemberProjectServeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 会员已购买的项目-服务
 * @Author: jeecg-boot
 * @Date: 2022-02-11
 * @Version: V1.0
 */
@Service
public class BaseMemberProjectServeServiceImpl extends ServiceImpl<BaseMemberProjectServeMapper, BaseMemberProjectServe> implements IBaseMemberProjectServeService {
    @Autowired
    private BaseMemberProjectServeMapper baseMemberProjectServeMapper;

    //根据项目id查询服务列表
    @Override
    public List<ProjectServeInfo> getListByMemberProjectId(Integer pageNo, Integer pageSize,
                                                           String memberProjectId) {
        return baseMemberProjectServeMapper.getListByMemberProjectId(pageNo, pageSize, memberProjectId);
    }
}
